class HomeFormBean {
  String appRouteUrl;
  String title;
  List<FormItemBean> list;

  HomeFormBean({this.appRouteUrl, this.title, this.list});

  HomeFormBean.fromJson(Map<String, dynamic> json) {    
    this.appRouteUrl = json['appRouteUrl'];
    this.title = json['title'];
    this.list = (json['list'] as List)!=null?(json['list'] as List).map((i) => FormItemBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appRouteUrl'] = this.appRouteUrl;
    data['title'] = this.title;
    data['list'] = this.list != null?this.list.map((i) => i.toJson()).toList():null;
    return data;
  }
}

class FormItemBean {
  String title;
  int amount;

  FormItemBean({this.title, this.amount});

  FormItemBean.fromJson(Map<String, dynamic> json) {
    this.title = json['title'];
    this.amount = json['amount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['amount'] = this.amount;
    return data;
  }
}
